package com.shanks.home.module.grammar;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.shanks.home.R;

public class GrammarActivity extends Activity {
	
	private Button equalsBtn;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.setContentView(R.layout.activity_grammar);
		initView();
	}
	
	private void initView() {
		equalsBtn = (Button)this.findViewById(R.id.grammar_equals_btn);
		
		equalsBtn.setOnClickListener(onClickListener);
	}
	
	private OnClickListener onClickListener = new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			int id = v.getId();
			if (id == R.id.grammar_equals_btn) {
				equalsFunc();
			}
		}
	};
	
	private void equalsFunc() {
		new ShanksEquals();
	}
}